package com.xhh.nphm.web.controller.system;

import com.xhh.nphm.common.core.controller.BaseController;
import com.xhh.nphm.common.core.domain.entity.SysUser;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping("/system/cmnPages")
public class CmnPagesController extends BaseController {
    private final String prefix = "system/cmnPages";


    /**
     * 已批示信件工单
     * @return
     */
    @GetMapping("/ortherPsMail")
    public ModelAndView ortherPsMail(ModelMap mmp){
        SysUser sysUser = getSysUser();
        mmp.put("deptNo", sysUser.getDeptId());
        return new ModelAndView(prefix+"/ortherPsMail");
    }
}
